import request from '@/utils/request'

// 查询设备巡检记录列表
export function listEquipmentInspection(query) {
  return request({
    url: '/rooms/EquipmentInspection/list',
    method: 'get',
    params: query
  })
}

// 查询设备巡检记录详细
export function getEquipmentInspection(id) {
  return request({
    url: '/rooms/EquipmentInspection/' + id,
    method: 'get'
  })
}

// 新增设备巡检记录
export function addEquipmentInspection(data) {
  return request({
    url: '/rooms/EquipmentInspection',
    method: 'post',
    data: data
  })
}

// 修改设备巡检记录
export function updateEquipmentInspection(data) {
  return request({
    url: '/rooms/EquipmentInspection',
    method: 'put',
    data: data
  })
}

// 删除设备巡检记录
export function delEquipmentInspection(id) {
  return request({
    url: '/rooms/EquipmentInspection/' + id,
    method: 'delete'
  })
}

// 查询设备巡检记录列表
export function listRecord(params) {
  return request({
    url: '/rooms/EquipmentInspection/listRecord',
    method: 'get',
    params: params  // 显式指定params参数，与其他函数风格保持一致
  })
}
